package com.cy.service;

import com.cy.entity.Member;
import com.cy.vo.MemberVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenyi
 * @email qq228112142@qq.com
 * @date 2017-08-08 17:35:59
 */
public interface MemberService {
	
	Member queryObject(Long id);
	
	List<Member> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(Member member);
	
	void update(Member member);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

    List<Member> findByCode(String recommendCode);

	List<Member> findByTeamCode(String teamCode);

    void saveMemberAndTeam(Member member);

    List<Member> findByAccount(String account);

    List<MemberVo> exportList();

	void updateState(Long[] ids, String stateValue);

    void importXls(MultipartFile file);

	void importXlsx(MultipartFile file);
}
